﻿package twitter 
{
	/**
	 * ...
	 * @author s
	 */
	public class TweetLoaderFriendTimeline extends AbstractTweetLoader
	{
		
		public function TweetLoaderFriendTimeline(accessToken:String, accessTokenSecret:String, consumerKey:String, consumerSecret:String) 
		{
			super(accessToken, accessTokenSecret, consumerKey, consumerSecret);
		}

		public function loadFriendTimeline(count:int = 200, sinceId:String = null):Boolean
		{
			var url:String = "http://twitter.com/statuses/friends_timeline.json";
			var param:String = "count=" + count;
			if (sinceId != null) {
				param = param + "&since_id=" + sinceId
			}
			url = "http://byoonview.appspot.com/proxy/statuses/friends_timeline.json?" + getSignedURI("GET", url, param);
			//url = "friends_timeline2.xml";
			//url = "friends_timeline.json";

			return super.loadTimeline(url);
		}
	}
}